const { NODE_ENV, VUE_APP_PATH } = process.env
const { host } = window.location
let isLocal = NODE_ENV === 'development'
const isTest = host.includes('172.24.155.190') || host.includes('newzxkf.guosen.com.cn')
const isProd = host.includes('guosen.com.cn')

// eslint-disable-next-line

if (host.includes('localhost')
  || host.includes('192.168')) isLocal = true

export default {
  version: '0.0.1',
  isLocal, // 本地开发环境
  isTest, // 测试环境
  isProd, // 生产环境
  publicPath: VUE_APP_PATH, // 根 path
}
